package com.cloud.sso.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.sso.dto.OrgQueryDto;
import com.cloud.sso.entity.SysLog;
import com.cloud.sso.entity.SysOrg;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrgMapper extends BaseMapper<SysOrg> {

    List<SysOrg> querySubOrg(String parentId);

    List<SysOrg> queryRootOrg();

    List<SysOrg> queryByPage(OrgQueryDto dto);

    Integer getCount(OrgQueryDto dto);

    Integer deleteByOrgCode(String orgCode);

}
